# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	libunity
PORTVERSION=	7.1.4
CATEGORIES=	devel
MASTER_SITES=	UBUNTU

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Library for integrating with all aspects of the Unity Shell

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING.GPL-3

BUILD_DEPENDS=	valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=	libdee-1.0.so:${PORTSDIR}/devel/dee

USES=	pkgconfig gmake libtool pathfix gettext ubuntu:snapshot
USE_AUTOTOOLS=	libtoolize autoconf aclocal automake
GNU_CONFIGURE=	yes
USE_PYTHON=	2
USE_GNOME=	glib20 gtk30 intltool intlhack introspection:build \
	pygobject3
USE_UBUNTU=	libdbusmenu
USE_LDCONFIG=	yes

UBUNTU_SNAPSHOT=	20140808
PATHFIX_MAKEFILEIN=	Makefile.am

GLIB_SCHEMAS=	com.canonical.Unity.Lenses.gschema.xml

CONFIGURE_ARGS=--enable-introspection=yes \
	--enable-integration-tests=no \
	--enable-trace-log=no \
	--enable-headless-tests=no \
	--disable-static

.include <bsd.port.pre.mk>

.if ! exists(${LOCALBASE}/include/gtk-3.0/gtk/ubuntu-private.h)
BROKEN=	Need x11-toolkits/gtk30 patched
.endif

.include <bsd.port.post.mk>
